<template>
	<view class="pagebody">
		<view class="title">{{title}}</view>
		<view class="content" v-html="content">
		</view>
	</view>
</template>

<script>
	import {
		getPolicy
	} from '@/api/api.js'
	// import config from '@/config'
	// import FixedFoot from '../../layouts/fixedfoot.vue';

	export default {
		components: {
			// FixedFoot,
		},
		onLoad(option) {
			console.log(option.typeid)
			this.getpolicy(option.typeid)
		},
		data() {
			return {
				title:'',
				content:''
			}
		},
		created() {

		},
		mounted() {},
		onBackPress(options) {},

		methods: {
			getpolicy(id){
				getPolicy(id).then(res=>{
					this.title = res.data.title
					this.content = res.data.content
					uni.setNavigationBarTitle({
									title:this.title
								})
				})
			},
			
		},

	}
</script>

<style lang="scss" scoped>
	.pagebody {
		background: #fff;
		padding: 58rpx 24rpx;
		.title{
			display: flex;
			justify-content: center;
			font-family: PingFang SC, PingFang SC;
			font-weight: 800;
			font-size: 40rpx;
			color: #303B39;
			line-height: 72rpx;
			text-align: center;
			font-style: normal;
			text-transform: none;
		}
		.content{
			margin-top: 32rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 36rpx;
			color: #303B39;
			line-height: 72rpx;
			text-align: left;
			font-style: normal;
			text-transform: none;
		}
	}
</style>